package cn.geoportal.benoserver.entity.vo.iot;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @ProjectName: gmo
 * @Package: cn.geoportal.benoserver.entity.vo.iot
 * @ClassName: IotInfoGet
 * @Author: chiangbt@geoportal.cn
 * @Description: iot info get
 * @Date: 2021/10/9 17:38
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class IotInfoGet {
    @JSONField(ordinal = 0)
    @ApiModelProperty(position = 0)
    private String id;

    @JSONField(ordinal = 0)
    @ApiModelProperty(position = 0)
    private String name;

    @JSONField(ordinal = 1)
    @ApiModelProperty(position = 1)
    private String code;

    @JSONField(ordinal = 2)
    @ApiModelProperty(position = 2)
    private String address;

    @JSONField(ordinal = 3)
    @ApiModelProperty(position = 3)
    private String description;

    @JSONField(ordinal = 4)
    @ApiModelProperty(position = 4)
    private Integer typeid;

    @JSONField(ordinal = 5)
    @ApiModelProperty(position = 5)
    private String typename;

    @JSONField(ordinal = 6)
    @ApiModelProperty(position = 6)
    private String gltfUrl;

    @JSONField(ordinal = 7)
    @ApiModelProperty(position = 7)
    private String videoUrl;

    @JSONField(ordinal = 8)
    @ApiModelProperty(position = 8)
    private Float temp;

    @JSONField(ordinal = 9)
    @ApiModelProperty(position = 9)
    private Float humidity;

    @JSONField(ordinal = 10)
    @ApiModelProperty(position = 10)
    private Float height;

    /**
     * 纬度
     */
    @JSONField(ordinal = 11)
    @ApiModelProperty(position = 11)
    private Float lat;

    /**
     * 经度
     */
    @JSONField(ordinal = 12)
    @ApiModelProperty(position = 12)
    private Float lng;

    @TableField(exist = false)
    @JSONField(ordinal = 13)
    @ApiModelProperty(position = 13)
    private String geomStr;

    @JSONField(ordinal = 14)
    @ApiModelProperty(position = 14)
    private Date createdat;

    @JSONField(ordinal = 15)
    @ApiModelProperty(position = 15)
    private Date updatedat;
}
